package com.md.entity;

public class Blog {
    private int blogId;
    private String blogTitle;
    private String blogAuthor;
    private String blogText;

    public Blog() {
    }

    public Blog(int blogId, String blogTitle, String blogAuthor, String blogText) {
        this.blogId = blogId;
        this.blogTitle = blogTitle;
        this.blogAuthor = blogAuthor;
        this.blogText = blogText;
    }

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public String getBlogTitle() {
        return blogTitle;
    }

    public void setBlogTitle(String blogTitle) {
        this.blogTitle = blogTitle;
    }

    public String getBlogAuthor() {
        return blogAuthor;
    }

    public void setBlogAuthor(String blogAuthor) {
        this.blogAuthor = blogAuthor;
    }

    public String getBlogText() {
        return blogText;
    }

    public void setBlogText(String blogText) {
        this.blogText = blogText;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "blogId=" + blogId +
                ", blogTitle='" + blogTitle + '\'' +
                ", blogAuthor='" + blogAuthor + '\'' +
                ", blogText='" + blogText + '\'' +
                '}';
    }
}
